const express = require('express');
const app = express();
const port=3000;

//路由
app.get('/',(req,res)=>{res.send("Hello,Express!")});

//启动服务器
app.listen(port,()=>{
    console.log(`Server is running at http://localhost:${port}`);
})